package com.example.p_ttcheng.rrk.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;

import com.example.p_ttcheng.rrk.R;
import com.example.p_ttcheng.rrk.common.BaseActivity;

public class WalletActivity extends BaseActivity {



    @Override
    public int getViewId() {
        return R.layout.activity_wallet;
    }

    @Override
    public void initView() {
        android.support.v7.app.ActionBar actionBar = getSupportActionBar();
        if(actionBar != null){
            actionBar.setHomeButtonEnabled(true);
            actionBar.setDisplayHomeAsUpEnabled(true);
            actionBar.setTitle(R.string.wallet_title);
        }
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                this.finish(); // back button
                return true;
        }
        return super.onOptionsItemSelected(item);
    }

}
